{extend name="index/index"}
{block name="main"}


        <!-- 博客列表 -->
        <div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1>BLOG <small>博客列表</small></h1>
			</div>



			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>ID</th>
						<th>文章标题</th>
						<th>作者</th>
						<th>是否置顶</th>
						<th>是否推荐到首页</th>
						<th>是否允许评论</th>
						<th>显示状态</th>
						<th>审核状态</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
				{volist name='$list' id='vo'}
				<tr class="list-users">
					<td>{$vo.id}</td>
					<td>{$vo.title}</td>
					<td>{$vo.author}</td>
					<td><a href="{:url('/adminblogtop',['id'=>$vo['id']])}">{$vo.always_top==1 ? '置顶':'不置顶'}</a></td>
					<td><a href="{:url('/adminblogrecommend',['id'=>$vo['id']])}">{$vo.allow_recommend==1 ? '推荐':'不推荐'}</a></td>
					<td><a href="{:url('/adminblogcomment',['id'=>$vo['id']])}">{$vo.allow_comment==1 ?'允许':'不允许'}</a></td>
					<td><a href="{:url('/adminblogbdisplay',['id'=>$vo['id']])}">{$vo.display==1 ?'显示':'隐藏'}</a></td>
					<td><span class="label label-success">{$vo.state}</span></td>
					<td>
						<div class="btn-group">
							<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">Actions <span class="caret"></span></a>
							<ul class="dropdown-menu">
								<li><a href="{:url('/adminblogbdisplay',['id'=>$vo['id']])}"><i class="icon-pencil"></i> Edit</a></li>
								<li><a href="#"><i class="icon-trash"></i> Delete</a></li>
								<li><a href="{:url('/adminblogdetails',['id'=>$vo['id']])}"><i class="icon-user"></i> Details</a></li>
								<li class="nav-header">Permissions</li>
								<li><a href="#"><i class="icon-lock"></i> Make <strong>Admin</strong></a></li>
								<li><a href="#"><i class="icon-lock"></i> Make <strong>Moderator</strong></a></li>
								<li><a href="#"><i class="icon-lock"></i> Make <strong>User</strong></a></li>
							</ul>
						</div>
					</td>
				</tr>
				{/volist}


				</tbody>
			</table>
			<div class="pagination">
				<ul>
					<li><a href="#">Prev</a></li>
					<li class="active">
						<a href="#">1</a>
					</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">Next</a></li>
				</ul>
			</div>
			<a href="../User/new-user.html" class="btn btn-success">New User</a>
		  </div>
        </div>
      </div>

      <hr>
      <script>
		  </script>

{/block}